var fs=require('fs');
var BUFFER_SIZE=10000;
function copy(src,dest){
  var readSoFar,fdsrc,fddest,read;
  var buff = new Buffer(BUFFER_SIZE);
    fdsrc=fs.openSync(src,'r');
    fddest=fs.openSync(dest,'w');
    do{
        read=fs.readSync
        //fd,buffer,offset,length,position
       fs.writeSync();
    }while(read>0)
    fs.closeSync(fdsrc);
    fs.cloaseSync(fddest);
}